package com.ruoyi.project.oms.paeaRiskItem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
import com.ruoyi.project.oms.paeaRiskItem.domain.PaeaRiskItem;
import com.ruoyi.project.oms.paeaRiskItem.domain.PaeaRiskItemNumModel;
import com.ruoyi.project.oms.paeaRiskItem.domain.PaeaRiskItemQuery;
import com.ruoyi.project.system.user.domain.User;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 预警Mapper接口
 *
 * @author gang.wei
 * @date 2020-03-22
 */
@Component
public interface PaeaRiskItemMapper extends BaseMapper<PaeaRiskItem>
{
    /**
     * 查询预警
     *
     * @param id 预警ID
     * @return 预警
     */
    public PaeaRiskItem selectPaeaRiskItemById(String id);

    /**
     * 查询预警列表
     *
     * @param paeaRiskItem 预警
     * @return 预警集合
     */
    public List<PaeaRiskItem> selectPaeaRiskItemList(PaeaRiskItem paeaRiskItem);

    /**
     * 新增预警
     *
     * @param paeaRiskItem 预警
     * @return 结果
     */
    public int insertPaeaRiskItem(PaeaRiskItem paeaRiskItem);

    /**
     * 修改预警
     *
     * @param paeaRiskItem 预警
     * @return 结果
     */
    public int updatePaeaRiskItem(PaeaRiskItem paeaRiskItem);

    /**
     * 删除预警
     *
     * @param id 预警ID
     * @return 结果
     */
    public int deletePaeaRiskItemById(String id);

    /**
     * 批量删除预警
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deletePaeaRiskItemByIds(String[] ids);
    /**
     * 批量查询预警
     *
     * @param ids 需要查询的数据ID
     * @return 结果
     */
    public List<PaeaRiskItem> selectPaeaRiskItemByIds(String[] ids);
    public List<PaeaRiskItem> selectPaeaRiskItemsByInfoId(String riskInfoId);
    public List<PaeaRiskItem> selectPaeaRiskItemsByInfoIdAndBe(String riskInfoId);

    //获取预警数量
    public List<PaeaRiskItemNumModel> getPaeaRiskItemNumModel(String userCode, String beginDate, String endDate, String brCode,String impType,String filterFlag);


}
